package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * app引导页图片
 *
 * @author fengzhen
 * @version v1.0, 2018/4/14
 */
public class WelcomeImgsBean implements Parcelable {

    private List<ResultBean> result;

    protected WelcomeImgsBean(Parcel in) {
        result = in.createTypedArrayList(ResultBean.CREATOR);
    }

    public static final Creator<WelcomeImgsBean> CREATOR = new Creator<WelcomeImgsBean>() {
        @Override
        public WelcomeImgsBean createFromParcel(Parcel in) {
            return new WelcomeImgsBean(in);
        }

        @Override
        public WelcomeImgsBean[] newArray(int size) {
            return new WelcomeImgsBean[size];
        }
    };

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(result);
    }

    public static class ResultBean implements Parcelable{
        /**
         * id : 33
         * token : null
         * pushSign : null
         * name : 测试app2
         * img : http://p35r91t1w.bkt.clouddn.com/FvVdEjNMxSFdUg0Ue7sI27Wl9UUR
         * sequence : 2
         * isdisplay : 1
         * positioncode : 3
         * houseid : null
         */

        private int id;
        private Object token;
        private Object pushSign;
        private String name;
        private String img;
        private int sequence;
        private int isdisplay;
        private String positioncode;
        private Object houseid;

        protected ResultBean(Parcel in) {
            id = in.readInt();
            name = in.readString();
            img = in.readString();
            sequence = in.readInt();
            isdisplay = in.readInt();
            positioncode = in.readString();
        }

        public static final Creator<ResultBean> CREATOR = new Creator<ResultBean>() {
            @Override
            public ResultBean createFromParcel(Parcel in) {
                return new ResultBean(in);
            }

            @Override
            public ResultBean[] newArray(int size) {
                return new ResultBean[size];
            }
        };

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public Object getToken() {
            return token;
        }

        public void setToken(Object token) {
            this.token = token;
        }

        public Object getPushSign() {
            return pushSign;
        }

        public void setPushSign(Object pushSign) {
            this.pushSign = pushSign;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public int getSequence() {
            return sequence;
        }

        public void setSequence(int sequence) {
            this.sequence = sequence;
        }

        public int getIsdisplay() {
            return isdisplay;
        }

        public void setIsdisplay(int isdisplay) {
            this.isdisplay = isdisplay;
        }

        public String getPositioncode() {
            return positioncode;
        }

        public void setPositioncode(String positioncode) {
            this.positioncode = positioncode;
        }

        public Object getHouseid() {
            return houseid;
        }

        public void setHouseid(Object houseid) {
            this.houseid = houseid;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(id);
            dest.writeString(name);
            dest.writeString(img);
            dest.writeInt(sequence);
            dest.writeInt(isdisplay);
            dest.writeString(positioncode);
        }
    }
}
